Class TcpProcessImpl

All Implemented Interfaces:
IPCObject, Process, TcpProcess

public class TcpProcessImpl extends ProcessImpl implements TcpProcess
Information provided by the PKI file:

    \class TcpProcess
    
    \brief TcpProcess handles and manipulates the TCP process.
    
    \example network().getDevice("Router0").getProcess("TcpProcess")
    
Author:
Auto-generated
  • Constructor Details

  • Method Details

    • getUserDefinedMSS

      public Short getUserDefinedMSS()
      Information provided by the PKI file:
      
          \brief Returns the maximum segment size value.
          
          \return short, the maximum segment size value.
          
              
      Specified by:
      getUserDefinedMSS in interface TcpProcess
      Returns:
      Short Returns a Short
    • setUserDefinedMSS

      public void setUserDefinedMSS(Short mss)
      Information provided by the PKI file:
      
          \brief Sets the maximum segment size value.
          
          \param short, the maximum segment size value.
          
              
      Specified by:
      setUserDefinedMSS in interface TcpProcess
      Parameters:
      mss - Takes in a parameter of mss
    • getUserDefinedWindowSize

      public int getUserDefinedWindowSize()
      Information provided by the PKI file:
      
          \brief Returns the window size.
          
          \return int, the window size.
          
              
      Specified by:
      getUserDefinedWindowSize in interface TcpProcess
      Returns:
      int Returns a int
    • isNagleEnabled

      public boolean isNagleEnabled()
      Information provided by the PKI file:
      
          \brief Returns true if Nagle's algorithm is enabled, otherwise false.
          
          \return bool, true if Nagle's algorithm is enabled, otherwise false.
          
              
      Specified by:
      isNagleEnabled in interface TcpProcess
      Returns:
      boolean Returns a boolean
    • setNagleEnabled

      public void setNagleEnabled(boolean val)
      Information provided by the PKI file:
      
          \brief Enables or disables Nagle's algorithm.
          
          \param val, true to enable Nagle's algorithm, false to disable it.
          
              
      Specified by:
      setNagleEnabled in interface TcpProcess
      Parameters:
      val - Takes in a parameter of val
    • getNagleWaitingInterval

      public int getNagleWaitingInterval()
      Information provided by the PKI file:
      
          \brief Returns Nagle's algorithm waiting interval.
          
          \return int, Nagle's algorithm waiting interval.
          
              
      Specified by:
      getNagleWaitingInterval in interface TcpProcess
      Returns:
      int Returns a int
    • setNagleWaitingInterval

      public void setNagleWaitingInterval(int interval)
      Information provided by the PKI file:
      
          \brief Sets Nagle's algorithm waiting interval.
          
          \param interval, Nagle's algorithm waiting interval.
          
              
      Specified by:
      setNagleWaitingInterval in interface TcpProcess
      Parameters:
      interval - Takes in a parameter of interval
    • listen

      public CustomTcpProcess listen(int port, boolean requestNotify)
      Information provided by the PKI file:
      
          \brief Start a tcp connection that listens
          
          \param port, port number at which the tcp connection listens at
          \param requestNotify, true if a notify is requested or false if it's not
          \return CustomTcpProcess, CustomTcpProcess object
          
              
      Specified by:
      listen in interface TcpProcess
      Parameters:
      port - Takes in a parameter of port
      requestNotify - Takes in a parameter of requestNotify
      Returns:
      CustomTcpProcess Returns a CustomTcpProcess